//导入vue
import Vue from "vue"
//导入路由
import VueRouter from "vue-router"
//使用路由模块

Vue.use(VueRouter);

import Index from '../pages/Index'
import SellerRegist from '../pages/SellerRegist'
import Seller from '../pages/Seller'
import SellerLogin from '../pages/SellerLogin'
import SellerInfo from '../pages/SellerInfo'
import GoodsList from '../pages/GoodsList'
import AddGoods from '../pages/AddGoods'
import SellerAct from '../pages/SellerAct'
import SellerMyself from '../pages/SellerMyself'
import ChangeGood from '../pages/ChangeGood'
import SellerMessage from '../pages/SellerMessage'

import Buller from '../pages/Buller'
import BullerCar from '../pages/BullerCar'
import BullerSelf from '../pages/BullerSelf'
import BullerMessage from '../pages/BullerMessage'
import BullerLogin from '../pages/BullerLogin'
import BullerRegist from '../pages/BullerRegist'
import BullerInfo from '../pages/BullerInfo'
import BullerIndex from '../pages/BullerIndex'
import BullerStore from '../pages/BullerStore'
import BullerFollow from '../pages/BullerFollow'
import BullerHistory from '../pages/BullerHistory'
import BullerAct from '../pages/BullerAct'
import BullerArea from '../pages/BullerArea'

import BullerList from '../pages/BullerList'
import BullerSearch from '../pages/BullerSearch'
import BullerResult from '../pages/BullerResult'

import GoodInfo from '../pages/GoodInfo'
import BullerBull from '../pages/BullerBull'
import BullerMoney from '../pages/BullerMoney'
import BullerAddarea from '../pages/BullerAddarea'
import BullerChangearea from '../pages/BullerChangearea'
import SellerStore from '../pages/SellerStore'



const routes = [{
		path: '/',
		component: Index,
		children: [{
				path: '/',
				component: Buller,
				children: [{
						path: '/',
						component: BullerList
					},

				]
			},
			{
				path: '/buller/car',
				component: BullerCar
			},
			{
				path: '/buller/message',
				component: BullerMessage
			},
			{
				path: '/buller/self',
				component: BullerIndex,
				children: [{
						path: '/buller/self',
						component: BullerSelf
					},
					{
						path: '/buller/info',
						component: BullerInfo
					},
					{
						path: '/buller/area',
						component: BullerArea
					},
					{
						path: '/buller/login',
						component: BullerLogin
					},
					{
						path: '/buller/regist',
						component: BullerRegist
					},
					{
						path: '/buller/store',
						component: BullerStore
					},
					{
						path: '/buller/follow',
						component: BullerFollow
					},
					{
						path: '/buller/history',
						component: BullerHistory
					},
					{
						path: '/buller/act',
						component: BullerAct
					},
				]
			},

		]
	},
	{
		path: '/buller/search',
		component: BullerSearch
	},
	{
		path: '/buller/result',
		component: BullerResult
	},
	{
		path: '/good/info/:id',
		component: GoodInfo
	},
	{
		path: '/buller/bullgoods',
		component: BullerBull
	},
	{
		path:'/buller/useMoney',
		component:BullerMoney
	},
	{
		path:'/buller/addArea',
		component:BullerAddarea
	},
	{
		path:'/buller/changeArea',
		component:BullerChangearea
	},
	{
		path:'/buller/seller/:id',
		component:SellerStore
	},

	{
		path: '/seller',
		component: Seller,
		children: [{
				path: '/seller',
				component: SellerMyself
			},
			{
				path: '/seller/login',
				component: SellerLogin
			},
			{
				path: '/seller/regist',
				component: SellerRegist
			},
			{
				path: '/seller/info',
				component: SellerInfo
			},
			{
				path: '/seller/goods',
				component: GoodsList
			},
			{
				path: '/seller/add',
				component: AddGoods
			},
			{
				path: '/seller/act',
				component: SellerAct
			},

			{
				path: '/seller/message',
				component: SellerMessage
			}
		]
	},
	{
		path: '/seller/changeGood',
		component: ChangeGood
	},

]

export default new VueRouter({

	routes

})